//
//  StrategyInspectionResult.h
//  StrategySimulator
//
//  Created by jiro on 12/07/16.
//  Copyright 2012 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#include <vector>
#include "../DbTypes.h"

class StrategyPerfomance : public DbTableEntry
{
public:

	static NSString* tableName();
	static NSString* queryCreateTable();
	static NSString* queryFieldsOfCreateTable();
	static NSString* queryInsertInitialValues();
	static NSString* querySelectAll( const std::vector< ClauseNode >& clauses );
	static NSString* querySelect( const std::vector< FieldNode >& fieldNodes, const std::vector< ClauseNode >& clauses );

	NSString* queryInsert() const;
	NSString* queryInsertValue() const;

	StrategyPerfomance();

	StrategyPerfomance( const std::vector< const char* >& values );

	double getScore() const; 
	
	NSString* toString() const;

public:

	int strategyIndex;

	int parameterIndex;

	int tradeCount;

	double winRate;

	double interestRate;

	double profitPerTrade;

	double dayIntervalPerTradeDay;

};
